package com.vp.org.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class UUIDUtil {

    public static String getUUID() {

        // 根据当前时间获取20位数的唯一id
        return LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddSSnn")).substring(0, 16) + (int) (Math.random() * 9000 + 1000);
    }
}
